<?php

class Familymember_Form_Admin_Type extends Engine_Form {
	public function init() {
		$this->setTitle ( 'Add Relationship Type' )->setAttrib ( 'class', 'global_form' );
		
		$this->addElement ( 'Text', 'title', array ('label' => 'Type title', 'required' => true, 'allowEmpty' => false ) );
		
		$this->addElement ( 'Button', 'submit', array ('label' => 'Add', 'type' => 'submit', 'ignore' => true, 'decorators' => array ('ViewHelper' ) ) );
		
		$this->addElement ( 'Cancel', 'cancel', array ('label' => 'cancel', 'prependText' => ' or ', 'decorators' => array ('ViewHelper' ) ) );
		$this->addDisplayGroup ( array ('submit', 'cancel' ), 'buttons' );
	}
}